package com.easygoods.shiro;

import com.bestvike.stone.spring.shiro.annotation.resolver.AnnotationResolver;
import com.bestvike.stone.spring.shiro.annotation.resolver.SpringAnnotationResolver;
import com.bestvike.stone.spring.shiro.cache.CacheManager;
import com.easygoods.shiro.mgt.RedisCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by 许崇雷 on 2019-03-15.
 */
@Configuration
public class ShiroAuthAutoConfiguration {
    @Bean
    AnnotationResolver annotationResolver() {
        return new SpringAnnotationResolver();
    }

    @Bean
    CacheManager cacheManager() {
        return new RedisCacheManager();
    }
}
